package com.hhw.service;

import java.util.List;

import com.hhw.dao.UserRegisterDao;
import com.hhw.entity.UserRegister;

 public class UserRegisterService {
	 
	/* 实例化数据访问层*/
	  UserRegisterDao ma=new UserRegisterDao();
	  
	 /* 验证用户注册方法*/
	  public int addUserRegister(UserRegister m){
		int count=ma.addUser(m);
		return count;
	}
	  
	 /* 验证用户判断方法*/
	public boolean isExist(UserRegister m) {
		return ma.isExist(m);
	}
	
	 /*验证新用户注册查询方法*/
	public List<UserRegister> findUserRegister(){
		return ma.UserRegister();	
	}
	
}
